package com.sheyu.mall.product.service.attr;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sheyu.common.utils.PageUtils;
import com.sheyu.mall.product.entity.attr.AttrEntity;
import com.sheyu.mall.product.service.attr.vo.AttrGroupRelationVo;
import com.sheyu.mall.product.vo.AttrGroupVo;
import com.sheyu.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author sheyu
 * @email sheyu@XXX.com
 * @date 2020-07-27 12:44:31
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVo(AttrVo attrVo);

    PageUtils queryPageBycategoryId(Map<String, Object> params, Long catelogId, String attrType);

    AttrGroupVo getAttrInfo(Long attrId);

    void updateAttrVo(AttrVo attrVo);

    void queryPageBycategoryIdTest(Long catelogId);

    void deleteRealtion(AttrGroupRelationVo[] attrGroupRelationVo);

    PageUtils queryAttrByNoRelationAttrgroupId(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

